/* AI People 现代化样式 - 参考ChatGPT主页设计 */

:root {
    /* 现代化色彩系统 - 参考ChatGPT风格 */
    --primary: #10a37f;
    --primary-hover: #0d8b6c;
    --primary-light: #e6f7f2;
    --secondary: #6366f1;
    --secondary-hover: #4f46e5;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    
    /* 背景色彩 */
    --bg-primary: #ffffff;
    --bg-secondary: #f7f7f8;
    --bg-tertiary: #ececf1;
    --bg-dark: #202123;
    --bg-dark-secondary: #2d2d30;
    --bg-overlay: rgba(0, 0, 0, 0.05);
    --bg-glass: rgba(255, 255, 255, 0.85);
    
    /* 文字色彩 */
    --text-primary: #0d0d0d;
    --text-secondary: #565869;
    --text-tertiary: #8e8ea0;
    --text-inverse: #ffffff;
    --text-accent: #10a37f;
    
    /* 边框和分割线 */
    --border-light: #e5e5e5;
    --border-medium: #d1d5db;
    --border-dark: #9ca3af;
    --divider: rgba(0, 0, 0, 0.1);
    
    /* 阴影系统 */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px 0 rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 25px 0 rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px 0 rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 0 1px rgba(16, 163, 127, 0.2), 0 4px 12px 0 rgba(16, 163, 127, 0.15);
    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 4px 12px 0 rgba(0, 0, 0, 0.15), 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    
    /* 圆角系统 */
    --radius-xs: 0.25rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;
    
    /* 间距系统 */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 5rem;
    
    /* 动画 */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-spring: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* 字体 */
    --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    
    /* Z-index 层级 */
    --z-dropdown: 1000;
    --z-modal: 1050;
    --z-tooltip: 1070;
    --z-toast: 1080;
}

/* 现代化基础样式覆盖 */
.modern-body {
    font-family: var(--font-sans);
    background: var(--bg-secondary);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    
    /* 现代化背景 */
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(16, 163, 127, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 40% 60%, rgba(245, 158, 11, 0.03) 0%, transparent 25%);
}

/* 欢迎区域现代化 - 全屏布局 */
.modern-welcome {
    text-align: center;
    margin-bottom: 0;
    padding: var(--space-4xl) 0;
    position: relative;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modern-welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(16, 163, 127, 0.08) 0%, transparent 70%);
    z-index: -1;
}

.modern-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: var(--space-xl);
    line-height: 1.1;
    letter-spacing: -0.02em;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.title-main {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e, #ffa8a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite alternate;
    position: relative;
}

.title-separator {
    color: var(--text-secondary);
    font-weight: 300;
    animation: separatorPulse 2s ease-in-out infinite;
}

.title-sub {
    background: linear-gradient(135deg, #4ecdc4, #44a08d, #2c5530);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleFade 4s ease-in-out infinite alternate;
    position: relative;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
        transform: scale(1);
    }
    100% {
        text-shadow: 0 0 30px rgba(255, 107, 107, 0.6), 0 0 40px rgba(255, 107, 107, 0.3);
        transform: scale(1.02);
    }
}

@keyframes separatorPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes titleFade {
    0% {
        text-shadow: 0 0 15px rgba(78, 205, 196, 0.3);
        transform: translateY(0);
    }
    100% {
        text-shadow: 0 0 25px rgba(78, 205, 196, 0.5), 0 0 35px rgba(78, 205, 196, 0.2);
        transform: translateY(-2px);
    }
}

.modern-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    animation: titleUnderline 2s ease-out 0.5s forwards;
    transform-origin: center;
    transform: translateX(-50%) scaleX(0);
}

@keyframes titleUnderline {
    to {
        transform: translateX(-50%) scaleX(1);
    }
}

.modern-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-4xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0;
    animation: subtitleFadeIn 1s ease-out 1s forwards;
}

.subtitle-line {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: subtitleLineAppear 1.5s ease-out forwards;
}

.subtitle-line:nth-child(1) {
    animation-delay: 1.5s;
}

.subtitle-line:nth-child(2) {
    animation-delay: 2s;
}

@keyframes subtitleLineAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitleFadeIn {
    to {
        opacity: 1;
    }
}

/* 搜索框现代化 - 全屏布局 */
.modern-search-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    animation: searchBoxRise 1s ease-out 1.5s both;
    transform: translateY(-10px);
    flex-shrink: 0;
}

@keyframes searchBoxRise {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.modern-search-box {
    width: 100%;
    padding: var(--space-xl) var(--space-4xl) var(--space-xl) var(--space-2xl);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-3xl);
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    font-size: 1.25rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    min-height: 80px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.modern-search-box:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.modern-search-box::placeholder {
    color: var(--text-tertiary);
    font-size: 1.25rem;
    font-weight: 400;
}

.modern-search-icon {
    position: absolute;
    left: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 1.75rem;
    pointer-events: none;
    transition: all var(--transition-normal);
}

.modern-search-box:focus + .modern-search-icon {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.modern-search-btn {
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: var(--text-inverse);
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    opacity: 0;
    visibility: hidden;
    box-shadow: var(--shadow-lg);
    font-size: 1.5rem;
}

.modern-search-btn.show {
    opacity: 1;
    visibility: visible;
}

.modern-search-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-xl);
}

.modern-search-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* 特色功能按钮 - 第一页布局 */
.modern-feature-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin: var(--space-2xl) 0;
    flex-wrap: wrap;
    animation: featuresSlideIn 1s ease-out 2s both;
}

@keyframes featuresSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-feature-btn {
    padding: var(--space-md) var(--space-xl);
    background: var(--bg-glass);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-3xl);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    backdrop-filter: blur(20px);
    letter-spacing: 0.01em;
}

.modern-feature-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.modern-feature-btn i {
    font-size: 1.1rem;
    transition: all var(--transition-normal);
}

.modern-feature-btn:hover i {
    transform: scale(1.1);
}

/* 角色卡片现代化 - 第二页布局 */
.modern-character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: var(--space-2xl);
    margin: 0;
    padding: var(--space-4xl) var(--space-lg);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    min-height: 100vh;
    align-content: start;
}

/* Card Beam 风格的三卡片效果 - 向左调整 */
.three-card-stack {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 2rem auto 1rem auto;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-20px) translateX(-280px);
}

/* Card Beam 容器 */
.card-beam-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

/* 光束效果背景 */
.card-beam-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary) 20%, 
        var(--secondary) 50%, 
        var(--primary) 80%, 
        transparent 100%
    );
    transform: translate(-50%, -50%) rotate(0deg);
    border-radius: 2px;
    opacity: 0.8;
    filter: blur(1px);
    animation: beamPulse 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes beamPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) rotate(0deg) scaleX(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) rotate(5deg) scaleX(1.2);
    }
}

/* 卡片束效果 */
.card-beam-stack {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.three-card-stack .stack-card {
    position: absolute;
    width: 300px;
    height: 400px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.9) 50%, 
        rgba(241, 245, 249, 0.95) 100%
    );
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    transform-style: preserve-3d;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Card Beam 光束效果 */
.stack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(99, 102, 241, 0.1) 30%, 
        rgba(139, 92, 246, 0.2) 50%, 
        rgba(99, 102, 241, 0.1) 70%, 
        transparent 100%
    );
    transition: left 0.8s ease;
    z-index: 1;
}

.stack-card:hover::before {
    left: 100%;
}

/* 卡片内容容器 */
.stack-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Card Beam 卡片定位 - 真正居中排列 */
.three-card-stack .stack-card:nth-child(1) {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotateY(-15deg) rotateX(5deg) translateZ(30px) translateX(-50px) translateY(10px);
    z-index: 3;
    animation: cardFloat1 4s ease-in-out infinite;
}

.three-card-stack .stack-card:nth-child(2) {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg) translateZ(50px) translateY(10px);
    z-index: 2;
    animation: cardFloat2 4s ease-in-out infinite;
}

.three-card-stack .stack-card:nth-child(3) {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotateY(15deg) rotateX(5deg) translateZ(30px) translateX(50px) translateY(10px);
    z-index: 1;
    animation: cardFloat3 4s ease-in-out infinite;
}

/* 卡片浮动动画 - 真正居中版本 */
@keyframes cardFloat1 {
    0%, 100% {
        transform: translate(-50%, -50%) rotateY(-15deg) rotateX(5deg) translateZ(30px) translateX(-50px) translateY(10px);
    }
    50% {
        transform: translate(-50%, -50%) rotateY(-12deg) rotateX(3deg) translateZ(40px) translateX(-40px) translateY(2px);
    }
}

@keyframes cardFloat2 {
    0%, 100% {
        transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg) translateZ(50px) translateY(10px);
    }
    50% {
        transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg) translateZ(60px) translateY(0px);
    }
}

@keyframes cardFloat3 {
    0%, 100% {
        transform: translate(-50%, -50%) rotateY(15deg) rotateX(5deg) translateZ(30px) translateX(50px) translateY(10px);
    }
    50% {
        transform: translate(-50%, -50%) rotateY(12deg) rotateX(3deg) translateZ(40px) translateX(40px) translateY(2px);
    }
}

/* Card Beam 悬停效果 - 柔和聚焦 */
.three-card-stack .stack-card:hover {
    transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg) translateZ(80px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(99, 102, 241, 0.2),
        0 10px 20px rgba(139, 92, 246, 0.15),
        0 0 0 1px rgba(99, 102, 241, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 10;
    animation: none;
    filter: brightness(1.05) saturate(1.1);
}

.three-card-stack .stack-card:hover ~ .stack-card {
    opacity: 0.6;
    transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg) translateZ(30px) scale(0.95);
    filter: blur(1px) brightness(0.9);
    animation: none;
}

/* 柔和光束聚焦效果 - 已移除旋转动画 */

/* Card Beam 卡片内容样式 - 头像70%布局 */
.stack-card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.stack-card-avatar {
    width: 100%;
    height: 70%;
    border-radius: 20px;
    background: linear-gradient(135deg, 
        var(--primary) 0%, 
        var(--secondary) 50%, 
        var(--primary) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 3rem;
    box-shadow: 
        0 8px 16px rgba(99, 102, 241, 0.3),
        0 4px 8px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.stack-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.stack-card-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        var(--primary) 0%, 
        var(--secondary) 50%, 
        var(--primary) 100%
    );
    color: white;
    font-weight: 800;
    font-size: 3rem;
    border-radius: 20px;
}

.stack-card-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 70%
    );
    animation: avatarShine 3s ease-in-out infinite;
}

@keyframes avatarShine {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.stack-card-info {
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.stack-card-info h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.stack-card-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 0.8rem 0;
    font-weight: 600;
    opacity: 0.8;
    line-height: 1.3;
}

.stack-card-description {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
    opacity: 0.9;
    text-align: center;
    margin: 0;
}

.stack-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.stack-card-tag {
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%, 
        rgba(139, 92, 246, 0.15) 100%
    );
    color: var(--primary);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stack-card-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%
    );
    transition: left 0.6s ease;
}

.stack-card-tag:hover::before {
    left: 100%;
}

/* Card Beam 刷新动画效果 */
.three-card-stack.refreshing .stack-card {
    animation: cardBeamGather 1.0s ease-in-out;
}

.three-card-stack.refreshing-scatter .stack-card {
    animation: cardBeamScatter 1.0s ease-in-out;
}

/* 光束聚合动画 */
@keyframes cardBeamGather {
    0% {
        opacity: 1;
        filter: blur(0px) brightness(1);
        transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg) translateZ(0px) scale(1);
    }
    30% {
        opacity: 0.8;
        filter: blur(2px) brightness(1.2);
        transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg) translateZ(0px) scale(0.8);
    }
    60% {
        opacity: 0.6;
        filter: blur(5px) brightness(1.5);
        transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg) translateZ(0px) scale(0.4);
    }
    100% {
        opacity: 0;
        filter: blur(10px) brightness(2);
        transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg) translateZ(0px) scale(0.1);
    }
}

/* 光束散开动画 */
@keyframes cardBeamScatter {
    0% {
        opacity: 0;
        filter: blur(10px) brightness(2);
        transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg) translateZ(0px) scale(0.1);
    }
    40% {
        opacity: 0.7;
        filter: blur(3px) brightness(1.3);
        transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg) translateZ(0px) scale(0.9);
    }
    100% {
        opacity: 1;
        filter: blur(0px) brightness(1);
        transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg) translateZ(0px) scale(1);
    }
}

@keyframes cardGather {
    0% {
        opacity: 1;
        filter: blur(0px);
    }
    50% {
        transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg) translateZ(0px) scale(0.3);
        opacity: 0.5;
        filter: blur(5px);
    }
    100% {
        transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg) translateZ(0px) scale(0.1);
        opacity: 0;
        filter: blur(10px);
    }
}

@keyframes cardScatter {
    0% {
        transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg) translateZ(0px) scale(0.1);
        opacity: 0;
        filter: blur(10px);
    }
    50% {
        transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg) translateZ(0px) scale(0.8);
        opacity: 0.7;
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        filter: blur(0px);
    }
}

/* Card Beam 散开动画 */
.three-card-stack.refreshing-scatter .stack-card:nth-child(1) {
    animation: cardBeamScatter1 1.0s ease-in-out;
}

.three-card-stack.refreshing-scatter .stack-card:nth-child(2) {
    animation: cardBeamScatter2 1.0s ease-in-out;
}

.three-card-stack.refreshing-scatter .stack-card:nth-child(3) {
    animation: cardBeamScatter3 1.0s ease-in-out;
}

@keyframes cardBeamScatter1 {
    0% {
        transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg) translateZ(0px) scale(0.1);
        opacity: 0;
        filter: blur(10px) brightness(2);
    }
    30% {
        transform: translate(-50%, -50%) rotateY(-10deg) rotateX(5deg) translateZ(20px) scale(0.6);
        opacity: 0.6;
        filter: blur(3px) brightness(1.5);
    }
    60% {
        transform: translate(-50%, -50%) rotateY(-18deg) rotateX(7deg) translateZ(35px) scale(0.9);
        opacity: 0.8;
        filter: blur(1px) brightness(1.2);
    }
    100% {
        transform: translate(-50%, -50%) rotateY(-20deg) rotateX(8deg) translateZ(40px) translateX(-60px) scale(1);
        opacity: 1;
        filter: blur(0px) brightness(1);
    }
}

@keyframes cardBeamScatter2 {
    0% {
        transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg) translateZ(0px) scale(0.1);
        opacity: 0;
        filter: blur(10px) brightness(2);
    }
    30% {
        transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg) translateZ(30px) scale(0.6);
        opacity: 0.6;
        filter: blur(3px) brightness(1.5);
    }
    60% {
        transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg) translateZ(50px) scale(0.9);
        opacity: 0.8;
        filter: blur(1px) brightness(1.2);
    }
    100% {
        transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg) translateZ(60px) scale(1);
        opacity: 1;
        filter: blur(0px) brightness(1);
    }
}

@keyframes cardBeamScatter3 {
    0% {
        transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg) translateZ(0px) scale(0.1);
        opacity: 0;
        filter: blur(10px) brightness(2);
    }
    30% {
        transform: translate(-50%, -50%) rotateY(10deg) rotateX(5deg) translateZ(20px) scale(0.6);
        opacity: 0.6;
        filter: blur(3px) brightness(1.5);
    }
    60% {
        transform: translate(-50%, -50%) rotateY(18deg) rotateX(7deg) translateZ(35px) scale(0.9);
        opacity: 0.8;
        filter: blur(1px) brightness(1.2);
    }
    100% {
        transform: translate(-50%, -50%) rotateY(20deg) rotateX(8deg) translateZ(40px) translateX(60px) scale(1);
        opacity: 1;
        filter: blur(0px) brightness(1);
    }
}

.modern-character-card {
    background: var(--bg-glass);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    border: 1px solid var(--border-light);
    transition: all var(--transition-slow);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(20px) saturate(180%);
    min-height: 320px;
    animation: cardEnter 0.6s ease-out both;
}

.modern-character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform var(--transition-slow);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.modern-character-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.8s ease;
    opacity: 0;
}

.modern-character-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
    background: var(--bg-primary);
}

.modern-character-card:hover::before {
    transform: scaleX(1);
}

.modern-character-card:hover::after {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modern-character-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.modern-character-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.modern-character-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.modern-character-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-inverse);
    font-size: 2rem;
    font-weight: 700;
    border-radius: var(--radius-xl);
}

.modern-character-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.8s ease;
    opacity: 0;
}

.modern-character-card:hover .modern-character-avatar::before {
    opacity: 1;
    animation: avatarShimmer 1.5s ease-in-out;
}

@keyframes avatarShimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.modern-character-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.modern-character-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
    opacity: 0.9;
}

.modern-character-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

.modern-character-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.modern-character-tag {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-inverse);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-xs);
    letter-spacing: 0.01em;
    transition: all var(--transition-normal);
}

.modern-character-tag:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* 换一批按钮现代化 - 第二页布局 */
.modern-refresh-section {
    display: flex;
    justify-content: center;
    margin: var(--space-2xl) 0;
    padding: 0 var(--space-lg);
}

.modern-refresh-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--bg-glass);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-3xl);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(20px);
}

.modern-refresh-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.modern-refresh-btn i {
    font-size: 1.1rem;
    transition: transform var(--transition-normal);
}

.modern-refresh-btn:hover i {
    transform: rotate(180deg);
}

/* 聊天界面现代化 */
.modern-chat-container {
    background: var(--bg-glass);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    height: 85vh;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-light);
}

.modern-chat-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-inverse);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.modern-chat-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.modern-chat-character-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.modern-chat-character-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.modern-chat-character-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.modern-chat-character-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-inverse);
}

.modern-chat-character-details h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.modern-chat-character-details p {
    margin: 0;
    opacity: 0.85;
    font-size: 0.9rem;
    font-weight: 500;
}

.modern-chat-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.conversation-controls {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.modern-chat-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-inverse);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.modern-chat-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* 聊天消息现代化 */
.modern-chat-messages {
    flex: 1;
    padding: var(--space-lg);
    overflow-y: auto;
    background: var(--bg-secondary);
    position: relative;
}

.modern-chat-messages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, var(--bg-secondary), transparent);
    z-index: 1;
}

.modern-message {
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    animation: messageSlideIn 0.5s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-message.user {
    flex-direction: row-reverse;
}

.modern-message-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.modern-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.modern-message-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}

.modern-message.user .modern-message-avatar {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-inverse);
}

.modern-message.assistant .modern-message-avatar {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 2px solid var(--border-light);
}

.modern-message-content {
    max-width: 75%;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-md) var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: relative;
}

.modern-message.user .modern-message-content {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-inverse);
    border: none;
}

.modern-message-text {
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

/* 消息操作按钮样式 */
.message-actions {
    display: flex;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
    justify-content: flex-start;
}

.message-actions button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
}

.message-actions button:hover {
    background: var(--primary);
    color: var(--text-inverse);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.message-actions button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.message-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.message-actions button:disabled:hover {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    transform: none;
    box-shadow: var(--shadow-sm);
}

/* 特定按钮的悬停颜色 */
.copy-btn:hover {
    background: #10b981;
    color: white;
}

.regenerate-btn:hover {
    background: #f59e0b;
    color: white;
}

.play-btn:hover {
    background: var(--primary);
    color: white;
}

/* 输入区域现代化 */
.modern-chat-input-area {
    padding: var(--space-lg);
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
}

.modern-ai-skills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.modern-skill-selector {
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    letter-spacing: 0.01em;
}

.modern-skill-selector:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.modern-skill-selector.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-inverse);
    box-shadow: var(--shadow-glow);
}

.modern-input-group {
    display: flex;
    gap: var(--space-md);
    align-items: flex-end;
}

.modern-message-input {
    flex: 1;
    padding: var(--space-lg);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    background: var(--bg-secondary);
    font-size: 1.1rem;
    transition: all var(--transition-normal);
    resize: none;
    min-height: 60px;
    max-height: 150px;
    font-family: var(--font-sans);
    font-weight: 500;
}

.modern-message-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    background: var(--bg-primary);
}

.modern-message-input::placeholder {
    color: var(--text-tertiary);
    font-size: 1.1rem;
    font-weight: 400;
}

.modern-input-actions {
    display: flex;
    gap: var(--space-sm);
}

.modern-btn-send {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: var(--text-inverse);
    width: 60px;
    height: 60px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    font-size: 1.3rem;
    cursor: pointer;
}

.modern-btn-send:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.modern-btn-voice {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-light);
    color: var(--text-secondary);
    width: 60px;
    height: 60px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    font-size: 1.3rem;
    cursor: pointer;
}

.modern-btn-voice:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.modern-btn-voice.recording {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-color: #ef4444;
    color: var(--text-inverse);
    animation: pulseRecord 1s infinite;
}

@keyframes pulseRecord {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modern-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .modern-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }
    
    .modern-character-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: var(--space-2xl) var(--space-md);
    }
    
    .modern-chat-container {
        height: 90vh;
    }
    
    .modern-message-content {
        max-width: 85%;
    }
    
    .modern-feature-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .modern-search-box {
        min-height: 70px;
        font-size: 1.1rem;
    }
    
    .modern-search-box::placeholder {
        font-size: 1.1rem;
    }
    
    .modern-search-icon {
        font-size: 1.5rem;
    }
    
    .modern-search-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* 滚动条现代化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: var(--radius-md);
    transition: background var(--transition-normal);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* 加载动画现代化 */
.modern-loading {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.modern-loading-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--primary);
    animation: loadingBounce 1.4s ease-in-out infinite both;
}

.modern-loading-dot:nth-child(1) { animation-delay: -0.32s; }
.modern-loading-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes loadingBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 工具提示现代化 */
.modern-tooltip {
    position: relative;
    display: inline-block;
}

.modern-tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-dark);
    color: var(--text-inverse);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: var(--z-tooltip);
    margin-bottom: var(--space-xs);
}

.modern-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* 现代化模态框 */
.modern-modal-content {
    border: none;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    background: var(--bg-glass);
}

.modern-modal-header {
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-xl);
    background: var(--bg-secondary);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.modern-modal-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.modern-modal-body {
    padding: var(--space-xl);
}

/* 现代化表单控件 */
.modern-form-control {
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    transition: all var(--transition-normal);
    background: var(--bg-secondary);
    font-weight: 500;
}

.modern-form-control:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    background: var(--bg-primary);
}

/* 现代化按钮 */
.modern-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-xl);
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    color: var(--text-inverse);
    letter-spacing: 0.01em;
}

.modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-inverse);
}

.modern-btn-outline {
    border: 2px solid var(--border-medium);
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-xl);
    font-weight: 600;
    transition: all var(--transition-normal);
    letter-spacing: 0.01em;
}

.modern-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
}

/* 特殊动画效果 */
.modern-pulse {
    animation: modernPulse 2s infinite;
}

@keyframes modernPulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 163, 127, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 163, 127, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 163, 127, 0); }
}

.modern-glow {
    position: relative;
}

.modern-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
    border-radius: inherit;
    z-index: -1;
    filter: blur(6px);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modern-glow:hover::before {
    opacity: 0.6;
}

/* 背景装饰元素 */
.modern-bg-decoration {
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

.modern-bg-decoration::before,
.modern-bg-decoration::after {
    content: '';
    position: absolute;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0.03;
    animation: floatDecoration 20s ease-in-out infinite;
}

.modern-bg-decoration::before {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -150px;
    animation-delay: 0s;
}

.modern-bg-decoration::after {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: -100px;
    animation-delay: -10s;
}

@keyframes floatDecoration {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(30px) rotate(240deg); }
}

/* 修复布局问题 */
.modern-body {
    margin: 0;
    padding: 0;
}

/* 确保用户中心正确显示 */
.user-center-top-right {
    position: fixed !important;
    top: var(--space-lg) !important;
    right: var(--space-lg) !important;
    z-index: var(--z-dropdown) !important;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* 确保主内容区域不被遮挡 - 全屏布局 */
.main-content {
    flex: 1;
    padding: 0;
    position: relative;
    margin-top: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 背景粒子效果修复 */
#particles-js {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
}

/* 背景装饰元素修复 */
.modern-bg-decoration {
    position: fixed !important;
    pointer-events: none;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 确保导航栏正确显示 */
.navbar {
    position: sticky !important;
    top: 0;
    z-index: var(--z-dropdown) !important;
    background: var(--bg-glass) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
}

/* 修复空白页问题 */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: transparent;
    margin: 0;
    padding: 0;
}

/* 导航栏布局优化 */
.navbar {
    position: sticky !important;
    top: 0;
    z-index: var(--z-dropdown) !important;
    background: var(--bg-glass) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-md) 0;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm) 0 0;
}

/* 导航栏左侧区域 - 侧边栏按钮和模型选择 */
.navbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
    order: 1;
    justify-content: flex-start;
    margin-left: 0;
    padding-left: var(--space-sm);
}

/* 侧边栏切换按钮 */
.sidebar-toggle-btn {
    background: var(--bg-glass);
    border: 2px solid var(--border-light);
    color: var(--text-secondary);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    backdrop-filter: blur(20px);
    font-size: 1.2rem;
}

.sidebar-toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* 模型选择器容器 */
.model-selector-container {
    position: relative;
}

.model-selector {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-glass);
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    backdrop-filter: blur(20px);
    font-weight: 500;
    min-width: 120px;
}

.model-selector:hover {
    background: var(--bg-primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.model-selector i {
    color: var(--primary);
    transition: all var(--transition-normal);
    font-size: 1.1rem;
}

.model-selector span {
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.01em;
    font-size: 0.9rem;
}

.model-selector .bi-chevron-down {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    transition: transform var(--transition-normal);
}

.model-selector:hover .bi-chevron-down {
    color: var(--primary);
}

/* 模型下拉菜单 */
.model-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-dropdown);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    backdrop-filter: blur(20px) saturate(180%);
    margin-top: var(--space-sm);
    min-width: 200px;
}

.model-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.model-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.model-dropdown-header span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.model-dropdown-close {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.model-dropdown-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.model-dropdown-content {
    padding: var(--space-sm);
    max-height: 200px;
    overflow-y: auto;
}

.model-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.9rem;
    font-weight: 500;
}

.model-option:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.model-option.selected {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-inverse);
}

/* 导航栏中间区域 - 已移除 */

/* 导航栏右侧区域 - 用户中心 */
.navbar-right {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    order: 2;
    justify-content: flex-end;
}

/* 用户中心容器 */
.user-center-top-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    position: relative;
}

/* 登录按钮组 */
.login-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-login, .btn-register {
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    letter-spacing: 0.01em;
}

.btn-login {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-light);
}

.btn-login:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
}

.btn-register {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-inverse);
    border: none;
}

.btn-register:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* 用户头像容器优化 */
.user-avatar-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.user-avatar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%, 
        rgba(139, 92, 246, 0.1) 50%, 
        rgba(236, 72, 153, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}

.user-avatar-container:hover::before {
    opacity: 1;
}

.user-avatar-container:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* 用户头像 */
.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, 
        var(--primary) 0%, 
        var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* 用户名 */
.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* 下拉箭头 */
.user-dropdown-arrow {
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.user-avatar-container:hover .user-dropdown-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

/* 用户下拉菜单优化 */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: var(--bg-glass);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-dropdown);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    backdrop-filter: blur(20px) saturate(180%);
    margin-top: var(--space-sm);
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.user-avatar-large {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.vip-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    border: 2px solid white;
}

.user-info {
    flex: 1;
}

.user-name-large {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.user-status {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.user-actions-small {
    display: flex;
    gap: var(--space-sm);
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.9rem;
}

.btn-icon:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.user-dropdown-content {
    padding: var(--space-sm);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal);
    font-size: 0.9rem;
    font-weight: 500;
}

.user-dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
}

.user-dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: var(--space-sm) 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-content {
        padding: 0 var(--space-sm) 0 0;
        gap: var(--space-sm);
    }
    
    .navbar-left {
        gap: var(--space-sm);
        padding-left: var(--space-sm);
    }
    
    .sidebar-toggle-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .model-selector {
        padding: var(--space-xs) var(--space-md);
        min-width: 100px;
    }
    
    .model-selector span {
        font-size: 0.8rem;
    }
    
    .navbar-title {
        font-size: 1.3rem;
    }
    
    .user-name {
        display: none;
    }
    
    .user-avatar-container {
        padding: 0.375rem 0.75rem;
        gap: 0.5rem;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .user-dropdown {
        width: 280px;
        right: -1rem;
    }
}

@media (max-width: 480px) {
    .navbar-content {
        padding: 0 var(--space-xs) 0 0;
    }
    
    .navbar-left {
        gap: var(--space-xs);
        padding-left: var(--space-xs);
    }
    
    .sidebar-toggle-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .model-selector {
        padding: var(--space-xs) var(--space-sm);
        min-width: 80px;
    }
    
    .navbar-title {
        font-size: 1.1rem;
    }
    
    .user-avatar-container {
        padding: 0.25rem 0.5rem;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* 语音通话界面样式 */
.voice-call-modal {
    border: none;
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
}

.voice-call-header {
    text-align: center;
    padding: var(--space-2xl);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.character-avatar-large {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto var(--space-lg);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.character-avatar-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.character-avatar-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.character-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.call-status {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.voice-call-content {
    padding: var(--space-2xl);
    text-align: center;
}

.voice-wave-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-bottom: var(--space-xl);
}

.voice-wave {
    width: 4px;
    height: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    animation: wave 1.5s ease-in-out infinite;
}

.voice-wave:nth-child(2) { animation-delay: 0.1s; }
.voice-wave:nth-child(3) { animation-delay: 0.2s; }
.voice-wave:nth-child(4) { animation-delay: 0.3s; }
.voice-wave:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { height: 20px; }
    50% { height: 40px; }
}

.ai-response-text {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.response-content {
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.interrupt-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.interrupt-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    opacity: 0.9;
}

.interrupt-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.interrupt-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.voice-call-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    font-size: 1.5rem;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.mic-btn.recording {
    background: rgba(239, 68, 68, 0.8);
    border-color: rgba(239, 68, 68, 1);
    animation: pulse 1s infinite;
}

.hangup-btn {
    background: rgba(239, 68, 68, 0.8);
    border-color: rgba(239, 68, 68, 1);
}

.hangup-btn:hover {
    background: rgba(220, 38, 38, 0.9);
}

.mic-wave-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.mic-btn.recording .mic-wave-indicator {
    opacity: 1;
}

.wave-bar {
    width: 3px;
    height: 8px;
    background: white;
    border-radius: 1px;
    animation: micWave 1s ease-in-out infinite;
}

.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }

@keyframes micWave {
    0%, 100% { height: 8px; }
    50% { height: 16px; }
}

.minimized-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.mini-control-buttons {
    display: flex;
    gap: var(--space-sm);
}

.mini-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 1rem;
}

.mini-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.text-btn-mini.active {
    background: rgba(16, 163, 127, 0.8);
    border-color: rgba(16, 163, 127, 1);
}

/* 语音策略选择器样式 */
.voice-strategy-selector {
    position: relative;
    display: inline-block;
}

.voice-strategy-btn {
    padding: var(--space-sm) var(--space-md);
    border: 2px solid #ff6b6b;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    white-space: nowrap;
    position: relative;
    min-width: 140px;
    justify-content: space-between;
}

.voice-strategy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    border-color: #ff5252;
}

.voice-strategy-btn:active {
    transform: translateY(0);
}

.voice-strategy-btn .strategy-name {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
}

.voice-strategy-btn .bi-chevron-down {
    font-size: 0.7rem;
    transition: transform var(--transition-normal);
}

.voice-strategy-btn.open .bi-chevron-down {
    transform: rotate(180deg);
}

.strategy-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 32, 44, 0.95);
    border: 2px solid #ff6b6b;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    margin-top: var(--space-xs);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
}

.strategy-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.strategy-option {
    padding: var(--space-sm) var(--space-md);
    color: white;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 107, 107, 0.2);
}

.strategy-option:last-child {
    border-bottom: none;
}

.strategy-option:hover:not(.disabled) {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.strategy-option.active {
    background: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    font-weight: 600;
}

.strategy-option.disabled {
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

.strategy-option .strategy-status {
    margin-left: auto;
    font-size: 0.7rem;
    opacity: 0.7;
}

/* 语音消息标识样式 */
.voice-message-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: #ff6b6b;
    font-weight: 500;
}

.voice-message-indicator i {
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .voice-strategy-btn {
        min-width: 120px;
        font-size: 0.8rem;
    }
    
    .voice-strategy-btn .strategy-name {
        font-size: 0.75rem;
    }
}

/* 语音通话状态动画 */
.voice-call-modal.listening .voice-wave-container {
    animation: pulse 2s ease-in-out infinite;
}

.voice-call-modal.speaking .character-avatar-large {
    animation: pulse 1.5s ease-in-out infinite;
}

.hidden {
    display: none !important;
}

/* 侧边栏logo动态效果 */
.sidebar-logo {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e, #ffa8a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGlow 4s ease-in-out infinite alternate;
    position: relative;
    font-weight: 800;
    font-size: 1.5rem;
}

.sidebar-title span {
    background: linear-gradient(135deg, #4ecdc4, #44a08d, #2c5530);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoTextFade 5s ease-in-out infinite alternate;
    font-weight: 700;
}

@keyframes logoGlow {
    0% {
        text-shadow: 0 0 15px rgba(255, 107, 107, 0.4);
        transform: scale(1);
    }
    100% {
        text-shadow: 0 0 25px rgba(255, 107, 107, 0.7), 0 0 35px rgba(255, 107, 107, 0.3);
        transform: scale(1.05);
    }
}

@keyframes logoTextFade {
    0% {
        text-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
        transform: translateX(0);
    }
    100% {
        text-shadow: 0 0 20px rgba(78, 205, 196, 0.5), 0 0 30px rgba(78, 205, 196, 0.2);
        transform: translateX(2px);
    }
}
